package cn.itsource.pethome.detp.mapper;

import cn.itsource.pethome.detp.domian.Department;
import cn.itsource.pethome.detp.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentMapper {
    /**
     * 查询一个部门
     * @param id
     * @return
     */
    Department findByDeptId(Long id);

    /**
     * 查询所有
     * @return
     */
    List<Department> findAll(DepartmentQuery query);

    /**
     * 分页统计条数
     * @return
     */
    Long findCount(DepartmentQuery query);
    void addDept(Department department);
    void uptDeptById(Department department);
    void delDeptById(Long id);

    /**
     * 批量删除
     * @param ids
     */
    void batchDelDept(List<Integer> ids);

    /**
     * 查询全部
     * @return
     */
    List<Department> findDeptAll();
}
